package com.gameGroups.Dto;

import java.io.Serializable;
import java.util.Date;

/**
 * 作品扩展表
 */
public class WorksExtDto  implements Serializable ,Comparable<WorksExtDto>{
	private int wextid;
	private String messageContext;// 留言内容
	private int layer;// 层级
	private String pName;
	private Date updateDate;// 更新时间
	private int uid;// 留言者id
	private String headImg;//留言着头像
	private int wid;// 留言的作品id

	public int getWextid() {
		return wextid;
	}

	public void setWextid(int wextid) {
		this.wextid = wextid;
	}

	public String getMessageContext() {
		return messageContext;
	}

	public void setMessageContext(String messageContext) {
		this.messageContext = messageContext;
	}
	
	public String getpName() {
		return pName;
	}

	public void setpName(String pName) {
		this.pName = pName;
	}

	public int getLayer() {
		return layer;
	}

	public void setLayer(int layer) {
		this.layer = layer;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public int getUid() {
		return uid;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public int getWid() {
		return wid;
	}

	public void setWid(int wid) {
		this.wid = wid;
	}

	public int compareTo(WorksExtDto we) {
	 if (this.layer>we.getLayer()) {
		return 1;
	}else if (this.layer<we.getLayer()) {
		return -1;
	}else{
		return 0;
	}
	}
	
}
